package com.lin.fengxiu.service;

import com.lin.fengxiu.model.Banner;
import com.lin.fengxiu.repository.BannerRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName BannerService
 * @Description TODO
 * @Author wushaopei
 * @Date 2021/3/8 6:35
 * @Version 1.0
 */
@Service
public class BannerServiceImpl implements BannerService{

    @Autowired
    private BannerRepository bannerRepository;

    public Banner getByName(String name){
        return bannerRepository.findOneByName(name);
    }
}
